import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)


const router = new Router({
  routes: [
    {path:"/",redirect:"/Home"},
    
  ]
  
})
//注册全局钩子用来拦截导航
router.beforeEach((to, from, next) => {
    if(to.meta.title){
      document.title = to.meta.title;
    }
    next();
})




export default router;